import http from '@/libs/http'
class AnnouncementServer {
  async dtl() {
    let res = await http.get('/sys_announcement/dtl')
    return res
  }

  async add(row) {
    let res = await http.post('/sys_announcement/add', row)
    return res
  }

  async edit(row) {
    let res = await http.post('/sys_announcement/edit', row)
    return res
  }
}

const announcementServer = new AnnouncementServer()
export default announcementServer
